package andanyoung.springcloudalibaba.service.controller;

import andanyoung.springcloudalibaba.service.client.BServiceFeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author andanyoung
 * @version 1.0
 */
@RestController
public class SampleController {

    @Resource
    private BServiceFeignClient bService;

    @GetMapping("/a")
    @ResponseBody
    public String methodB() {
        String result = bService.methodC();
        result = " -> A Service " + result;
        return result;
    }
}
